package com.uuj.dome.controller;

import com.uuj.dome.entity.UserEntity;
import com.uuj.dome.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * ClassName:UserController
 * PACKAGE_NAME:com.uuj.dome
 */
@RestController
public class UserController {

    @Autowired
    private UserService service;

    @GetMapping(value = "/list")
    public List<UserEntity> findAll() {
        return service.findAll();
    }
}
